package com.luocj.looook.utils;

import android.support.annotation.ColorInt;

import com.choices.divider.Divider;
import com.choices.divider.DividerItemDecoration;

/**
 * Created by luocj515 on 2017/12/6.
 * 项目名称：LooooK
 * 类描述：
 * 创建人：hasee
 * 创建时间：2017/12/6 0:31
 * 修改备注：
 */

public class DividerLookUpImpl implements DividerItemDecoration.DividerLookup {


    private int color;
    private int size;

    public DividerLookUpImpl(@ColorInt int color, int size) {
        this.color = color;
        this.size = size;
    }

    @Override
    public Divider getVerticalDivider(int position) {
        return new Divider.Builder()
                .size(size)
                .color(color)
                .build();
    }

    @Override
    public Divider getHorizontalDivider(int position) {
        return new Divider.Builder()
                .size(size)
                .color(color)
                .build();
    }
}
